<template>
  <!-- 库存详情页面 -->
  <div>
    <!--信息单 -->
    <div>
      <el-row>
        <el-menu
          class="el-menu-demo"
          mode="horizontal"
        >
          <el-menu-item index="1"
                        style="font-size : 20px;font : blod;color:black">库存详情页</el-menu-item>
          <span class="but">
            <el-button icon="el-icon-edit-outline"
                       :plain="true"
                       @click="save()">上一条</el-button>
            <el-button icon="el-icon-edit-outline"
                       :plain="true"
                       @click="save()">下一条</el-button>
                                                        
            
            <el-button type="primary"
                       icon="el-icon-document"
                       :plain="true"
                       @click="cancel()">返回</el-button>           
          </span>

          <template>

          </template>

        </el-menu>
        <span>
          <font style="font-size : 15px;margin-left:20px">基本信息</font>
        </span>
      </el-row><br>
      <el-form :inline="true"

               label-width="90px"
               :model="formLabelAlign">
        <el-row>
          <el-col :span="7">
            <el-form-item label="产品信息：">
              
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="编码：">
              
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="仓库：">
              
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="7">
            <el-form-item label="成色：">
              <!-- <el-input v-model="basic.prepared"></el-input> -->
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="状态：">
              
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="类型：">
             
            
            </el-form-item>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="7">
            <el-form-item label="条码：">
              
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="重量">
              
            </el-form-item>
          </el-col>

          <el-col :span="7"
                  :offset="1">
            <el-form-item label="数量：">
              
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-menu
            class="el-menu-demo"
            mode="horizontal"
          >
            <el-menu-item index="1"
                          style="font-size : 15px;color:black">分称信息</el-menu-item>
 
          </el-menu>

        </el-row>

      </el-form>
    </div>

    <div>

      <!-- 产品信息表格 -->
      <el-table :data="tableData"
                style="width: 100%">
        <el-table-column label="序号"
                       align="center"
                       width="50">
        <template slot-scope="scope">
          <span>
            {{ scope.$index + 1 }}
          </span>
        </template>
      </el-table-column>

      <el-table-column prop="ioOrderNo"
                       align="center"
                       label="单号"
                       width="180">

        <router-link :to="{path:'/StockOutDetail'}">
          <!-- <el-button size="mini" type="text" ></el-button> -->
        </router-link>               
      </el-table-column>

      <el-table-column prop="customer"
                       align="center"
                       label="客户"
                       width="100">
      </el-table-column>
      <el-table-column prop="ioOrderType"
                       align="center"
                       label="类型"
                       width="100">
      </el-table-column>
      <el-table-column prop="area"
                       align="center"
                       label="区域"
                       width="80">
      </el-table-column>
      <el-table-column prop="status"
                       align="center"
                       label="状态"
                       width="80">
       <template slot-scope="scope">
          <span v-if="scope.row.status == 1 ">
            未开始
          </span>
          <span v-if="scope.row.status == 2 ">
            待审批
          </span>
          <span v-if="scope.row.status == 3 ">
            失败
          </span>
          <span v-if="scope.row.status == 4 ">
            成功
          </span>
          
        </template>

      </el-table-column>                
      
      <el-table-column prop="condition"
                       align="center"
                       label="成色"
                       width="80">
      </el-table-column>
      <el-table-column prop="weight"
                       align="center"
                       label="重量(g)"
                       width="80">
      </el-table-column>
      <el-table-column prop="amount"
                       align="center"
                       label="数量"
                       width="100">
      </el-table-column>
      <el-table-column prop="perGram"
                       align="center"
                       label="克工费"
                       width="170">
      </el-table-column>
        
        
      </el-table>
      <!-- 分页 -->
      <el-pagination style="float:right"
                     @size-change="handleSizeChange"
                     @current-change="handleCurrentChange"
                     :current-page="1"
                     :page-sizes="[10, 20, 30]"
                     :page-size="10"
                     layout="total, sizes, prev, pager, next, jumper"
                     :total="80">
      </el-pagination>
    </div>
  </div>
</template>

<script>
import {} from '@/api/warehouse/warehouseManager/warehouseDetail'
export default {

}
</script>

<style>

</style>